package com.wsd.serviceImpl;

import com.wsd.dao.RepaymentRecordMapper;
import com.wsd.domain.RepaymentRecord;
import com.wsd.service.RepaymentRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RepaymentRecordServiceImpl implements RepaymentRecordService {
    @Autowired
    private RepaymentRecordMapper repaymentRecordMapper;

    @Override
    public List<RepaymentRecord> selectRecordByCustomerId(String customerId) {
        long id = Long.parseLong(customerId);
        List<RepaymentRecord> records = repaymentRecordMapper.selectRecordByCustomerId(id);
        return records;
    }
}
